#ifndef CCHATSERVER_H
#define CCHATSERVER_H

#include <QTcpServer>
#include <QMap>
class CChatSession;
class CHandler;
class CChatServer:public QTcpServer
{
    Q_OBJECT
public:
    CChatServer(QHostAddress add,qint16 port, QObject*parent=0);
signals:
protected slots:
    void onNewConnection();
public:
    QMap<QByteArray,CChatSession*> users;
    CHandler*_chatHandler;

};

#endif // CCHATSERVER_H
